package com.tencent.org.mapper;

import com.tencent.basic.mapper.BaseMapper;
import com.tencent.org.domain.Shop;
import com.tencent.org.dto.ShopDto;

import java.util.List;

/**
 * Mapper接口 ： 店铺
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 判断店铺是否已经入驻
     * @param shop
     * @return
     */
    Shop loadByMessage(Shop shop);

    /**
     * 柱状图 每种状态店铺的数量
     * @return
     */
    List<ShopDto> getShopState();
}
